#!/bin/bash

now_time=$(date "+%Y%m%d-%H:%M:%S")
the_path='/data/gameserver/Poker/BoyaaRobot/'  
# ps -ef|grep skynet
# service crond status
# tail -f  /var/log/cron*
# crontab -e */1 * * * * sh /data/gameserver/Poker/BoyaaRobot/checker.sh > /dev/null 2>&1 &

function func_check_tarneeb() {
    
    p_num=`ps -ef |grep skynet |grep robot_tarneeb |wc -l`

    if  [ $p_num == 0  ]; then
        echo $now_time "reload robot_tarneeb!" >> $the_path'error_keeper_server.log'
        sh $the_path'robot/tarneeb/start.sh'
    fi
    
}

func_check_tarneeb







